<!DOCTYPE html>
<html>
<head>
    <title>商城配置:商户交易列表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("merchantcoin:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("merchantcoin:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("merchantcoin:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("merchantcoin:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="merchantCoin" :rules="ruleValidate" :label-width="95">
            <Form-item label="交易编号" prop="tradeNo">
                <i-input v-model="merchantCoin.tradeNo" placeholder="交易编号"/>
            </Form-item>
            <Form-item label="商家编号" prop="mid">
                <i-input v-model="merchantCoin.mid" placeholder="商家编号"/>
            </Form-item>
            <Form-item label="商家用户编号" prop="uid">
                <i-input v-model="merchantCoin.uid" placeholder="商家用户编号"/>
            </Form-item>
            <Form-item label="商家手机号" prop="phone">
                <i-input v-model="merchantCoin.phone" placeholder="商家手机号"/>
            </Form-item>
            <Form-item label="币数量" prop="sportCoin">
                <i-input v-model="merchantCoin.sportCoin" placeholder="币数量"/>
            </Form-item>
            <Form-item label="兑换人id" prop="consumUid">
                <i-input v-model="merchantCoin.consumUid" placeholder="兑换人id"/>
            </Form-item>
            <Form-item label="兑换人手机号" prop="consumPhone">
                <i-input v-model="merchantCoin.consumPhone" placeholder="兑换人手机号"/>
            </Form-item>
            <Form-item label="产品编号" prop="pid">
                <i-input v-model="merchantCoin.pid" placeholder="产品编号"/>
            </Form-item>
            <Form-item label="产品名称" prop="productName">
                <i-input v-model="merchantCoin.productName" placeholder="产品名称"/>
            </Form-item>
            <Form-item label="服务费" prop="rateValue">
                <i-input v-model="merchantCoin.rateValue" placeholder="服务费"/>
            </Form-item>
            <Form-item label="服务费率" prop="rate">
                <i-input v-model="merchantCoin.rate" placeholder="服务费率"/>
            </Form-item>
            <Form-item label="1兑换" prop="type">
                <i-input v-model="merchantCoin.type" placeholder="1兑换"/>
            </Form-item>
            <Form-item label="状态" prop="statu">
                <Radio-group v-model="merchantCoin.statu">
                    <Radio label="0">
                        <span>无效</span>
                    </Radio>
                    <Radio label="1">
                        <span>有效</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/merchant/merchantcoin.js?_${date.systemTime}"></script>
</body>
</html>